package com.filter;

import com.util.MemCachedUtil;
import com.util.Singleton;

public class BlackListFilter extends Singleton {
	public static BlackListFilter getInstance()
	{
		return (BlackListFilter)BlackListFilter.getInstance(BlackListFilter.class.getName());
	}
	public BlackListFilter()
	{
		
	}
	/**
	 * 
	 * @param mobileNum
	 * @return true 过滤 false 不过滤
	 */
	public boolean isBlack(String mobileNum)
	{
		if(MemCachedUtil.getInstance().get("blacknumber:"+mobileNum)==null)
			return false;
		else
			return true;
	}
}
